home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir26
/
epi601_2.zip
/
FILES07.EXE
/
REPORT.PGM
< prev
next >
Wrap
Text File
|
1994-08-22
|
2KB
|
57 lines
cls
ECHO The REPORT command specifies a file with a name ending in .RPT,
ECHO In our example TABLE2.RPT looks like this:
?Press <Enter> to see the .RPT file?
Type TABLE2.RPT
ECHO You can examine the file by pressing <PgUp>. Then press <Enter>
ECHO to READ the data file before running the report.
?Press <Enter> to READ SUMFILE.REC. ?
READ SUMFILE.REC
cls
ECHO Now the command REPORT TABLE2.RPT will produce the report
ECHO
ECHO Press <Enter> to do REPORT TABLE2.RPT
?Epi> ?
REPORT TABLE2.RPT
ECHO Use <PgUp> to scroll up and see the report, then press any key
ECHO to continue.
CLS
?Epi> ?
ECHO The first report used the simple mechanism of creating an
ECHO invisible table in memory with several variables, and then
ECHO placing the values for those variables wherever desired on
ECHO the screen by referring to the values within square brackets.
ECHO Thus [ALAMEDA, MEASLES] puts the number of cases of measles
ECHO in ALAMEDA county beginning at the location of the first square
ECHO bracket, and [ALAMEDA, ] refers to all cases from ALAMEDA
ECHO regardless of disease. [ , ] indicates cases from all counties
ECHO for all diseases, i.e., the grand total of all cases.
ECHO
?Press any key to continue ?
ECHO Reports can also contain commands such as FOREACH and IF that
ECHO provide power to generate large reports from a relatively
ECHO small .RPT file, and to include conditional statements
ECHO that provide a modest level of "intelligence" in the report.
ECHO The following report demonstrates the use of the FOREACH
ECHO command. The IF command is used within the report called
ECHO TABLE 1 in the NETSS menu in the SURVEILLANCE example, accessed
ECHO from the main EPI 6 menu.
ECHO
cls
ECHO The report file DISEASE.RPT looks like this:
?Press <Enter> to see the .RPT file?
Type DISEASE.RPT
ECHO You can examine the file by pressing <PgUp>. Then press <Enter>
ECHO to READ the data file before running the report.
?Press <Enter> to READ DISEASE.REC. ?
READ DISEASE.REC
cls
ECHO Now the command REPORT DISEASE.RPT will produce the report
ECHO Press <Enter> to do REPORT DISEASE.RPT
?Epi> ?
REPORT DISEASE.RPT
ECHO Use <PgUp> to scroll up and see the report, then press any key
ECHO to leave ANALYSIS
?Epi> ?
QUIT